//
//  PublicView.m
//  Bullet
//
//  Created by  on 2019/8/23.
//  Copyright © 2019 . All rights reserved.
//

#import "PublicView.h"

@implementation PublicView

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {

        self.imageView = [[UIImageView alloc]initWithFrame:CGRectMake((frame.size.width-65)/2, frame.size.height/2-65, 65, 65)];
        self.imageView.image = [UIImage imageNamed:@"ic_public_image"];
        [self addSubview:self.imageView];
        
        self.publicLabel = [[UILabel alloc]initWithFrame:CGRectMake(15, frame.size.height/2+10, KScreen_W-30, 50)];
        self.publicLabel.textColor = SixColor;
        self.publicLabel.font = Font(14);
        self.publicLabel.alpha = 0.5;
        self.publicLabel.textAlignment = NSTextAlignmentCenter;
        self.publicLabel.numberOfLines = 0;
        [self addSubview:self.publicLabel];

    }
    return self;
}
@end
